<template>
  <div class="knowledge_detail" style="width: 100%;height: 100%;">
    <editor
      v-model="html"
      onlyShow
      disabled
      height="100%"
      ref="editorRef"
    />
    <el-icon size="20px" @click="$router.go(-1)"><Close /></el-icon>
  </div>
</template>

<script>
import editor from "../components/editor.vue"
export default {
  name: "knowledgeDetail",
  components: {editor},
  computed: {
    html(){
      return this.$route.query.html
    }
  }
}
</script>
<style lang="scss" scoped>
.knowledge_detail {
  position: relative;
  .el-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    cursor: pointer;
  }
}
</style>

